﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace TFSCodeReviewHelper
{
    /// <summary>
    /// Interaction logic for ParticipationControl.xaml
    /// </summary>
    public partial class ParticipationControl : UserControl
    {
        public ParticipationControlViewModel _changeList;

        public ParticipationControl()
        {
            InitializeComponent();
            this.DataContext = _changeList;
        }

        public ParticipationControl(List<AssetChange> changes) :this()
        {
            _changeList = new ParticipationControlViewModel(changes);
        }

        public void SetChanges(List<AssetChange> changes)
        {
            _changeList = new ParticipationControlViewModel(changes);
        }


    }
}
